package com.healthy_software.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.healthy_software.entity.Goal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 陈子朋
 * @since 2025-5-9
 */
public interface GoalMapper extends BaseMapper<Goal> {

    /**
     * 根据用户id查询目标
     * @param userId
     * @return
     */
    List<Goal> getGoalsByUser(@Param("userId") Long userId);
}
